using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ColliderDrawer : MonoBehaviour {
#if UNITY_EDITOR
    public bool showGizmos = true;

    public Color boxColor = Color.yellow;
    public Color polygonColor = Color.green;
    public Color circleColor = Color.red;

    void OnDrawGizmos() {
        if (!showGizmos) {
            return;
        }

        FindObjectsOfType<BoxCollider2D>().DrawGimos(boxColor);
        FindObjectsOfType<PolygonCollider2D>().DrawGimos(polygonColor);
        FindObjectsOfType<CircleCollider2D>().DrawGimos(circleColor);
    }
#endif
}
